package com.design.pattern.behaviour.strategy;

/**
 * 满减策略
 * @Author hanyuanlai
 * @Date 2022/7/12
 */
public class CashReturn extends CashSuper{
    @Override
    double acceptCash(double cash) {
        if (cash > 100) {
            return cash - 30;
        }
        return cash;
    }
}
